/**
##############################################################################

DOCOMO Innovations, Inc.

Copyright © 2011 DOCOMO Innovations, Inc. All rights reserved.

 

Date of Preparation: 08/01/2011

Contact: kozat@docomoinnovations.com

 

All intellectual property rights related to this software are vested in DOCOMO Innovations.

DOCOMO Innovations is under no obligation to maintain or support the software.

Neither DOCOMO Innovations nor its employees are responsible for any damage or loss resulting from the use of the software.

##############################################################################
 */
package umich.infinity.proxy;

import java.util.concurrent.TimeUnit;

/* 
 * Configuration parameters
 */
public final class Para {
	public static final String CacheRoot = "/mnt/InfinityProxy/";
	public static final String CacheLogDir = "log/";
	
	/**
	 * Update monitor
	 */
	
	public static final int QueryFriendThreadPoolSize = 10;
	public static final int QueryAlbumThreadPoolSize = 10;
	public static final int QueryUserThreadPoolSize = 3;
	
	public static final int QueryFriendThreadPoolMaxSize = 100;
	public static final int QueryAlbumThreadPoolMaxSize = 100;
	public static final int QueryUserThreadPoolMaxSize = 10;
	
	public static final int QueryFriendThreadPoolKeepAliveTime = 120; 
	public static final int QueryAlbumThreadPoolKeepAliveTime = 120;
	public static final int QueryUserThreadPoolKeepAliveTime = 30*60;
	
	public static final String DefaultStartTime = "2000-01-01T00:00:00+0000";
	
	public static final long MinimumWakeupDelay = 10000; // millsec
	
	/**
	 * Upload scheduler
	 */
	
	public static final int UploadThreadPoolSize = 10;
	public static final int UploadThreadPoolMaxSize = 100;
	public static final int UploadThreadPoolKeepAliveTime = 180;
	
	public static final String FacebookAlbumName = "InfinityAlbum";
	
	/**
	 * Global
	 */
	public static final int ChunkSizeKB = 4; //in KB;
	public static final int ChunkSize = ChunkSizeKB*1024; // in Bytes
	
	public static final TimeUnit ThreadPoolTimeUnit = TimeUnit.SECONDS;
	
	/*
	public static final int QueryFriendThreadPoolQueueSize = 1000;
	public static final int QueryAlbumThreadPoolQueueSize = 10000;
	public static final int QueryPhotoThreadPoolQueueSize = 10000;
	*/	
}